package com.example.springbootdemo.bean.child;

import jakarta.annotation.PreDestroy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.DisposableBean;
@Slf4j
public class Bean05 implements DisposableBean {
  @Override
  public void destroy() throws Exception {
    log.info("aware 销毁");
  }

  @PreDestroy
  public void destroy1(){
    log.info("@PreDestroy 销毁");
  }

  public void destroy3(){
    log.info("@Bean 销毁");
  }
}
